<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>星座女神六周年</title>
    <script src="{$oss}/active/newyear/js/rem.js"></script>
    <link rel="stylesheet" href="{$oss}/active/sixyear/css/style.css?v=7">
    <!--    <meta name="description" content="{$descript}">-->
    <script src="https://static.mlinks.cc/scripts/dist/mlink.min.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>
<body>
<div class="content">
    <div class="img-item">
        <img src="{$oss}/active/sixyear/img/h1.png?v=1" alt="">
    </div>
    {if $record}
    <div class="tip-box">
        <div class="tip-content-box">
            {foreach name='record' item='v'}
            <div class="tip-item">
                <img src="{$v.avatar}" alt="">
                <span>{$v.nickname}抢到"{$v.cname}"</span>
            </div>
            {/foreach}
            <div class="tip-item">
                <img src="{$record[0]['avatar']}" alt="">
                <span>{$record[0]['nickname']}抢到"{$record[0]['cname']}"</span>
            </div>
        </div>
    </div>
    {/if}
    <!--    内容-->
    <div class="item-box">
        <div style="width: 7.5rem;height: 1.66rem;overflow: hidden">
            <div class="item-sel-box-x" style="width: 7.1rem;height: 1.86rem;margin: 0 auto;background-color:white;overflow-y: auto">
                <div class="item-sel-box">
                    <div class="item-sel-box-item{$data[6]['status']==3?'1':''}">
                        <div class="sel-item item-status{$data[6]['status']==3?'1':'2'} {$index==6?'show':''}" data-index="6">
                            <span>9月6日</span></div>
                    </div>
                    <div class="item-sel-box-item{$data[7]['status']==3?'1':''}">
                        <div class="sel-item item-status{$data[7]['status']==3?'1':'2'} {$index==7?'show':''}" data-index="7">
                            <span>9月7日</span></div>
                    </div>
                    <div class="item-sel-box-item{$data[8]['status']==3?'1':''}">
                        <div class="sel-item item-status{$data[8]['status']==3?'1':'2'} {$index==8?'show':''}" data-index="8">
                            <span>9月8日</span></div>
                    </div>
                    <div class="item-sel-box-item{$data[9]['status']==3?'1':''}">
                        <div class="sel-item item-status{$data[9]['status']==3?'1':'2'} {$index==9?'show':''}" data-index="9">
                            <span>9月9日</span></div>
                    </div>
                    <div class="item-sel-box-item{$data[10]['status']==3?'1':''}">
                        <div class="sel-item item-status{$data[10]['status']==3?'1':'2'} {$index==10?'show':''}" data-index="10">
                            <span>9月10日</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-box">
            <div class="content-item  {$index==6?'show':''}" data-index="6" data-dt="6">
                <div class="good-box-status-bg">
                    <div class="status-box">
                        <img class="bg" src="{$oss}/active/sixyear/img/goods-bg.png" alt="">
                        <div class="status-box">
                            <img class="status-res" src="{$oss}/active/sixyear/img/status{$data[6]['status']}.png" alt="">
                        </div>
                        <div class="name-box">
                            <img class="name" src="{$oss}/active/sixyear/img/good-day6.png" alt="">
                        </div>
                    </div>
                </div>
                <div class="good-box">
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon1.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">月度报告8.8折优惠券</p>
                            <p class="num">还剩<span>{$data[6]['a1_num']}</span>份</p>
                        </div>
                        <div class="good-button">
                            <a class="activ1-s{$data[6]['b1_status']}  a1 {$index==6?'index-btn':''}" data-status="{$data[6]['b1_status']}"
                               onclick="getCoupon(this,1)" href="javascript:;">{$data[6]['b1_name']}</a>
                        </div>
                    </div>
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon2.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">月度报告免单</p>
                            <p class="num">仅{$data[6]['a2_num']}个名额</p>
                        </div>
                        <div class="good-button">
                            <a class="activ2-s{$data[6]['b2_status']}  a2 {$index==6?'index-btn':''}" data-status="{$data[6]['b2_status']}"
                               onclick="getCoupon(this,2)" href="javascript:;">{$data[6]['b2_name']}</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-item {$index==7?'show':''}" data-index="7" data-dt="7">
                <div class="good-box-status-bg">
                    <div class="status-box">
                        <img class="bg" src="{$oss}/active/sixyear/img/goods-bg.png" alt="">
                        <div class="status-box">
                            <img class="status-res" src="{$oss}/active/sixyear/img/status{$data[7]['status']}.png" alt="">
                        </div>
                        <div class="name-box">
                            <img class="name" src="{$oss}/active/sixyear/img/good-day7.png" alt="">
                        </div>
                    </div>
                </div>
                <div class="good-box">
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon1.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">恋爱报告8.8折优惠券</p>
                            <p class="num">还剩<span>{$data[7]['a1_num']}</span>份</p>
                        </div>
                        <div class="good-button">
                            <a class="activ1-s{$data[7]['b1_status']} a1 {$index==7?'index-btn':''}" data-status="{$data[7]['b1_status']}"
                               onclick="getCoupon(this,1)" href="javascript:;">{$data[7]['b1_name']}</a>
                        </div>
                    </div>
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon2.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">恋爱报告免单</p>
                            <p class="num">仅{$data[7]['a2_num']}个名额</p>
                        </div>
                        <div class="good-button">
                            <a class="activ2-s{$data[7]['b2_status']} a2 {$index==7?'index-btn':''}" data-status="{$data[7]['b2_status']}"
                               onclick="getCoupon(this,2)" href="javascript:;">{$data[7]['b2_name']}</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-item {$index==8?'show':''}" data-index="8" data-dt="8">
                <div class="good-box-status-bg">
                    <div class="status-box">
                        <img class="bg" src="{$oss}/active/sixyear/img/goods-bg.png" alt="">
                        <div class="status-box">
                            <img class="status-res" src="{$oss}/active/sixyear/img/status{$data[8]['status']}.png" alt="">
                        </div>
                        <div class="name-box">
                            <img class="name" src="{$oss}/active/sixyear/img/good-day8.png" alt="">
                        </div>
                    </div>
                </div>
                <div class="good-box">
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon1.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">幸运之城8.8折优惠券</p>
                            <p class="num">还剩<span>{$data[8]['a1_num']}</span>份</p>
                        </div>
                        <div class="good-button">
                            <a class="activ1-s{$data[8]['b1_status']} a1 {$index==8?'index-btn':''}" data-status="{$data[8]['b1_status']}"
                               onclick="getCoupon(this,1)" href="javascript:;">{$data[8]['b1_name']}</a>
                        </div>
                    </div>
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon2.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">幸运之城免单</p>
                            <p class="num">仅{$data[8]['a2_num']}个名额</p>
                        </div>
                        <div class="good-button">
                            <a class="activ2-s{$data[8]['b2_status']} a2 {$index==8?'index-btn':''}" data-status="{$data[8]['b2_status']}"
                               onclick="getCoupon(this,2)" href="javascript:;">{$data[8]['b2_name']}</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-item {$index==9?'show':''}" data-index="9" data-dt="9">
                <div class="good-box-status-bg">
                    <div class="status-box">
                        <img class="bg" src="{$oss}/active/sixyear/img/goods-bg.png" alt="">
                        <div class="status-box">
                            <img class="status-res" src="{$oss}/active/sixyear/img/status{$data[9]['status']}.png" alt="">
                        </div>
                        <div class="name-box">
                            <img class="name" src="{$oss}/active/sixyear/img/good-day9.png" alt="">
                        </div>
                    </div>
                </div>
                <div class="good-box">
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon1.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">年运8.8折优惠券</p>
                            <p class="num">还剩<span>{$data[9]['a1_num']}</span>份</p>
                        </div>
                        <div class="good-button">
                            <a class="activ1-s{$data[9]['b1_status']} a1 {$index==9?'index-btn':''}" data-status="{$data[9]['b1_status']}"
                               onclick="getCoupon(this,1)" href="javascript:;">{$data[9]['b1_name']}</a>
                        </div>
                    </div>
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon2.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">年运免单</p>
                            <p class="num">仅{$data[9]['a2_num']}个名额</p>
                        </div>
                        <div class="good-button">
                            <a class="activ2-s{$data[9]['b2_status']} a2 {$index==9?'index-btn':''}" data-status="{$data[9]['b2_status']}"
                               onclick="getCoupon(this,2)" href="javascript:;">{$data[9]['b2_name']}</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-item {$index==10?'show':''}" data-index="10" data-dt="10">
                <div class="good-box-status-bg">
                    <div class="status-box">
                        <img class="bg" src="{$oss}/active/sixyear/img/goods-bg.png" alt="">
                        <div class="status-box">
                            <img class="status-res" src="{$oss}/active/sixyear/img/status{$data[10]['status']}.png" alt="">
                        </div>
                        <div class="name-box">
                            <img class="name" src="{$oss}/active/sixyear/img/good-day10.png" alt="">
                        </div>
                    </div>
                </div>
                <div class="good-box">
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon1.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">财富报告8.8折优惠券</p>
                            <p class="num">还剩<span>{$data[10]['a1_num']}</span>份</p>
                        </div>
                        <div class="good-button">
                            <a class="activ1-s{$data[10]['b1_status']} a1 {$index==10?'index-btn':''}"
                               data-status="{$data[10]['b1_status']}" onclick="getCoupon(this,1)"
                               href="javascript:;">{$data[10]['b1_name']}</a>
                        </div>
                    </div>
                    <div class="good-item">
                        <div class="good-icon">
                            <img src="{$oss}/active/sixyear/img/good-icon2.png" alt="">
                        </div>
                        <div class="good-name">
                            <p class="name">财富报告免单</p>
                            <p class="num">仅{$data[10]['a2_num']}个名额</p>
                        </div>
                        <div class="good-button">
                            <a class="activ2-s{$data[10]['b2_status']} a2 {$index==10?'index-btn':''}"
                               data-status="{$data[10]['b2_status']}" onclick="getCoupon(this,2)"
                               href="javascript:;">{$data[10]['b2_name']}</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--    使用规则标签-->
    <div class="rule-icon">
        <img src="{$oss}/active/sixyear/img/rule-icon.png" alt="">
    </div>
    <!--    使用规则详情-->
    <div class="rule-box">
        <div class="cover"></div>
        <div class="rule-content">
            <div class="rule-info">
                <div class="rile-title-box">
                    <img class="rile-title-icon" src="{$oss}/active/sixyear/img/rule-title-icon.png">
                    <img class="rile-title" src="{$oss}/active/sixyear/img/rule-title.png">
                </div>
                <div class="rule-item">
                    <p class="p-content">1、本活动仅限准了APP用户参与，从9月6日至9月10日，用户每天最多可领取两份优惠券福利，均为限量发售，其中免费券需用户分享后才可以获得抢券权限</p>
                </div>
                <div class="rule-item">
                    <p class="p-content">2、领取到的优惠券，需按照优惠券规则范围内进行使用。</p>
                </div>
                <div class="rule-item">
                    <p class="p-content">3、优惠券领取时间见下表</p>
                </div>
                <img class="ru-if" src="{$oss}/active/sixyear/img/rule-info.png?v=4" alt="">
                <div class="rule-item">
                    <p class="p-content">4、优惠券不得拆分，不得转赠或者售卖。</p>
                </div>
                <div class="rule-item">
                    <p class="p-content">5、优惠仅限在有效期内进行使用，逾期作废。</p>
                </div>
                <div class="rule-item">
                    <p class="p-content">6、优惠券不可兑换、不找零、不可兑现，每个订单最多可使用一张优惠券。不能叠加使用。</p>
                </div>
                <div class="rule-item">
                    <p class="p-content">7、在获取和使用优惠券过程中，如果出现违规行为（包含但不限于：作弊领取、恶意盗刷、恶意套现等）准了将有权采取终止违规交易、追回不当利益、废除未使用优惠券等措施。</p>
                </div>
                <div class="rule-item">
                    <p class="p-content">8、最终解释权归北京准了科技有限公司所有。</p>
                </div>
            </div>
            <div class="close-box"><img src="{$oss}/active/newyear/img/close.png" alt=""></div>
        </div>
    </div>
</div>
<div class="message-box">
    <div class="message"></div>
</div>

<div class="share-box" style="display: none">
    <div class="share-box-shadow"></div>
    <div class="share-choice">
        <div class="title">分享到：</div>
        <div class="share-list">
            <div class="list-item" onclick="toShare(0);">
                <span class="share0"></span>微信好友
            </div>
            <div class="list-item" onclick="toShare(1)">
                <span class="share1"></span>朋友圈
            </div>
            <div class="list-item" onclick="toShare(2);">
                <span class="share2"></span>新浪微博
            </div>
            <div class="list-item" onclick="toShare(3);">
                <span class="share3"></span>QQ好友
            </div>
            <div class="list-item" onclick="toShare(4);">
                <span class="share4"></span>QQ空间
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="{$oss}/active/newyear/js/jquery-v2.1.1.min.js"></script>
<script type="text/javascript">
    {if !$login}
    new Mlink([{
    mlink: 'https://axelkv.mlinks.cc/AesI?target=link&link=' + encodeURIComponent('https://beta-wechat.goddessxzns.com/web/year_activ_six'),//六周年活动
    button: document.querySelector('a.index-btn.a1')
    }, {
    mlink: 'https://axelkv.mlinks.cc/AesI?target=link&link=' + encodeURIComponent('https://beta-wechat.goddessxzns.com/web/year_activ_six'),//六周年活动
    button: document.querySelector('a.index-btn.a2')
    }]);
    {/if}
</script>
<script type="text/javascript">
    var toShare = null;
    var getCoupon = null;
    $(function () {
        var index = {$index};
        var app_type = '{$appType}';
        var thatIndex = null;

        function tipReload(herght, index, num, time) {
            if (num < 1) {
                return;
            }
            if (index > 0) {
                $('.tip-content-box').animate({top: '-' + (herght * index) + 'px'}, 700);
                if (index == num) {
                    setTimeout(function () {
                        $('.tip-content-box').css({top: '0px'});
                    }, 750);
                    index = 0;
                }
            }
            index++;
            setTimeout(function () {
                tipReload(herght, index, num, time)
            }, time)
        }

        tipReload($('.tip-item').height(), 0, {$recordLen}, 5000);
        $('.rule-icon').click(function () {
            $('.rule-box').show();
            $("body").addClass('body-style');
        });
        $('.close-box img').click(function () {
            $('.rule-box').hide();
            $("body").removeClass('body-style');
        });

        var btnSta1 = {$data[$index]['b1_status']};
        var btnTime1 = {$data[$index]['a1_time']};
        var btnSta2 = {$data[$index]['b2_status']};
        var btnTime2 = {$data[$index]['a2_time']};

        if (btnSta1 == 2) {
            btn1Times(btnTime1)
        }
        if (btnSta2 == 7) {
            setInterval(function () {
                btnTime2--;
            }, 1000)
        }

        function btn1Times(times) {
            if (times <= 0) {
                $('.activ1-s2.index-btn').removeClass('activ1-s2').addClass('activ1-s3').data('status', 3).text('立即抢');
                return;
            }
            var hour = Math.floor(times / 3600);
            var minute = Math.floor((times - hour * 3600) / 60);
            var second = times - hour * 3600 - minute * 60;

            var dates = dataLeftCompleting(hour) + ':' + dataLeftCompleting(minute) + ':' + dataLeftCompleting(second) + '后开抢';
            $('.activ1-s2.index-btn').text(dates);
            times--;
            setTimeout(function () {
                btn1Times(times)
            }, 1000);
        }

        function dataLeftCompleting(value) {
            return parseInt(value) < 10 ? "0" + value.toString() : value;
        }

        function btn2Times(times) {
            if (times <= 0) {
                $('.activ2-s2.index-btn').removeClass('activ2-s2').addClass('activ2-s3').data('status', 3).text('立即抢');
                return;
            }
            var hour = Math.floor(times / 3600);
            var minute = Math.floor((times - hour * 3600) / 60);
            var second = times - hour * 3600 - minute * 60;
            var dates = dataLeftCompleting(hour) + ':' + dataLeftCompleting(minute) + ':' + dataLeftCompleting(second) + '后开抢';
            $('.activ2-s2.index-btn').text(dates);
            times--;
            setTimeout(function () {
                btn2Times(times)
            }, 1000);
        }

        var status = {$login}, aa1 = 1, aa2 = 1, k = 1, isUpdate = {$isUpdate};

        getCoupon = function (obj, type) {
            var that = $(obj);
            var indexStatus = that.data('status'); // 1=>即将开抢（活动未开始）, 2=>即将开抢（活动进行中）, 3=>立即抢, 4=>已过期, 5=>已领取, 6=>已抢空, 7=>分享后可抢,
            if (indexStatus == 1 || indexStatus == 2 || indexStatus == 4 || indexStatus == 5 || indexStatus == 6) {
                return false;
            }
            if (status != 1) return;
            if (isUpdate == 1) {
                message('您的当前版本较低，需要更新至更高版本才可以参与活动哦~');
                return;
            }
            if (type == 1) {
                if (aa1 == 2) return;
                aa1 = 2;
                var index = that.parents('.content-item').data('dt');
                $.ajax({
                    url: '/api/v20/six_year_active1?dt=' + index,
                    type: 'GET',
                    dataType: 'json',
                    headers: {$headers},
                    success: function (res) {
                        if (res.code == 200) {
                            that.removeClass('activ1-s3').addClass('activ1-s5').data('status', 5).text('已领取');
                            var cnum = that.parents('.good-item').find('.good-name .num span');
                            cnum.text(cnum.text() - 1);
                        }
                        setTimeout(function () {
                            aa1 = 1;
                        }, 1500);
                        message(res.msg);
                    }
                });
            } else {
                if (indexStatus == 3) {
                    if (aa2 == 2) return;
                    aa2 = 2;
                    var index = that.parents('.content-item').data('dt');
                    $.ajax({
                        url: '/api/v20/six_year_active2?dt=' + index,
                        type: 'GET',
                        dataType: 'json',
                        headers: {$headers},
                        success: function (res) {
                            if (res.code == 200) {
                                that.removeClass('activ2-s3').addClass('activ2-s5').data('status', 5).text('已领取');
                            }
                            setTimeout(function () {
                                aa2 = 1;
                            }, 1500);
                            message(res.msg);
                        }
                    });
                } else {
                    if (k == 2) return;
                    k = 2;
                    // 分享抢
                    $('.share-box').show();
                    thatIndex = that;
                }
            }
        }

        toShare = function (shareIndex) {
            set('share{$uid}_' + index, true);
            commonJsToNativeShare('{$shareTitle}', '{$descript}', '{$domain}/web/year_activ_six?zhunleshare=1', shareIndex, 'common_js_to_native', '分享-六周年活动')
            setTimeout(function () {
                k = 1;
                $('.share-box').hide();
                if (btnTime2 > 0) {
                    thatIndex.removeClass('activ2-s7').addClass('activ2-s2').data('status', 2);
                    btn2Times(btnTime2);
                } else {
                    thatIndex.removeClass('activ2-s7').addClass('activ2-s3').data('status', 3).text('立即抢');
                }
            }, 1500);
        }

        setTimeout(function () {
            var isShare = get('share{$uid}_' + index) || false;
            console.log(isShare);
            if (isShare) {
                $('.activ2-s7.index-btn').removeClass('activ2-s7').addClass('activ2-s2').data('status', 2);
                btn2Times(btnTime2);
            }
        }, 200);


        $('.sel-item').click(function () {
            var index = $(this).data('index');
            $('.content-item').removeClass('show');
            $('.content-item[data-index=' + index + ']').addClass('show');
            $(this).addClass('show').parent().siblings().find('.sel-item').removeClass('show');
        });

        if (index > 8) {
            $('.item-sel-box-x').scrollLeft(500);
        }

        function message(text) {
            $('.message').text(text);
            $('.message-box').show();
            setTimeout(function () {
                $('.message-box').hide();
            }, 2500);
        }

        wx.config({
            debug: false,
            appId: '{$signPackage.appId}',
            timestamp: {$signPackage.timestamp},
            nonceStr: '{$signPackage.nonceStr}',
            signature: '{$signPackage.signature}',
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
        });
        wx.ready(function () {
            wx.onMenuShareAppMessage({
                title: '{$shareTitle}', // 分享标题
                desc: '{$descript}', // 分享描述
                link: '{$signPackage.url}', // 分享链接
                imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show', // 分享图标
                type: 'link', // 分享类型,music、video或link，不填默认为link
                dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
            wx.onMenuShareTimeline({
                title: '{$shareTitle}', // 分享标题
                link: '{$signPackage.url}', // 分享链接$signPackage.url
                imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show', // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
        });

        function set(key, value) {
            localStorage.setItem(key, value);//转换成json字符串序列
        }

        function get(key)//exp是设置的过期时间
        {
            var val = localStorage.getItem(key);//获取存储的元素
            return val;
        }

        /**
         * commonJsToNativeShare(title,desc,**url,platform[0：微信；1：微信朋友圈；2：微博；3：qq；4：qq空间]);【注意：banner 跳转的webview 和 服务消息里跳转的webview  要实现的js调用本地分享的方法】
         * @param title
         * @param desc
         * @param url
         * @param platform
         * @param umeng_event_name
         * @param umeng_event_label
         */
        function commonJsToNativeShare(title, desc, url, platform, umeng_event_name, umeng_event_label) {
            switch (app_type) {
                case 'ios':
                    window.webkit.messageHandlers.commonJsToNativeShare.postMessage({
                        'title': title,
                        'desc': desc,
                        'url': url,
                        'platform': platform,
                        'umeng_event_name': umeng_event_name,
                        'umeng_event_label': umeng_event_label
                    });
                    break;
                case 'android':
                    console.log('android')
                    androidwebview.commonJsToNativeShare(title, desc, url, platform, umeng_event_name, umeng_event_label)
                    break;
                default:
                    console.log('not ios or android')
            }
        }

        $('.share-box-shadow').click(function () {
            k = 1;
            $('.share-box').hide();
        })
    })
</script>
{include file="../apps/web/view/public/sensors.html" /}
<script>
    var cnzz_s_tag = document.createElement('script');
    cnzz_s_tag.type = 'text/javascript';
    cnzz_s_tag.async = true;
    cnzz_s_tag.charset = 'utf-8';
    cnzz_s_tag.src = 'https://w.cnzz.com/c.php?id=1279233618&async=1';
    var root_s = document.getElementsByTagName('script')[0];
    root_s.parentNode.insertBefore(cnzz_s_tag, root_s);
</script>
</html>
